<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <script src="../dev/vendors/vue.js"></script>
  <div id="app" v-once>
    Message: <span v-html="msg" v-if="id"></span>
    <a v-bind:href="url">{{ url | a | b}}</a>
  </div>
  <script>
    var vm = new Vue({
      el:'#app',
      data:{
        id: false,
        url: 'http://www.baidu.com',
        msg:'<strong>hello Vue.js</strong>'
      },
      filters: {
        a: function (value) {
          return value.toUpperCase()
          
        },
        b: function (value) {
          return value.replace('WWW.','')
          
        }
      }
    })
  </script>
</body>
</html>